package com.qf.service.impl;

import com.qf.dao.StageDao;
import com.qf.pojo.Stage;
import com.qf.service.StageService;

import java.util.List;

public class StageServiceImpl implements StageService {
    private StageDao stageDao;

    public void setStageDao(StageDao stageDao) {
        this.stageDao = stageDao;
    }

    @Override
    public void addStage(Stage stage) {
        stageDao.addStage(stage);
    }

    @Override
    public List<Stage> findAll() {
        List<Stage> stages = stageDao.findAll();
        return stages;
    }
}
